package com.michau.testitas.core.dao.hibernate;

import com.michau.testitas.common.model.user.User;
import com.michau.testitas.core.dao.api.UserDao;

/**
 * User: michau
 * Date: 4/7/13
 * Time: 7:21 PM
 */
public class UserDaoHibernate extends GenericDaoHibernate<User, Long> implements UserDao {

    public UserDaoHibernate(){
        super(User.class);
    }

    @Override
    public void createOrUpdate(User user) {
        getSession().saveOrUpdate(user);
    }

}
